function reverseString(message){
  // wirte your code here
    var newString = '';
    for (var i = message.length - 1; i >= 0; i--) {
        newString += message[i];
    }
    console.log(newString);
}
reverseString('hello'); // should return 'olleh'